home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / SPIRO_SO / WNE_AVAI.C < prev   
C/C++ Source or Header  |  1988-01-03  |  395b  |  19 lines

  1. #include    "MacTypes.h"
  2. #include    "OSUtil.h"
  3.  
  4. #define     WNETrapNum        0x60
  5. #define     UnImplTrapNum     0x9F
  6.  
  7. Boolean    WNE_avail()
  8. {
  9.     Boolean     WNEIsImplemented;
  10.     OSErr        err;
  11.     SysEnvRec     theWorld;
  12.  
  13.     err = SysEnvirons(1,&theWorld);
  14.  
  15.      WNEIsImplemented = (theWorld.machineType >= 0) &&
  16.                         (NGetTrapAddress( WNETrapNum,ToolTrap) !=
  17.                         NGetTrapAddress(UnImplTrapNum,ToolTrap));
  18.     return(WNEIsImplemented);
  19. }